Fix: Add DATA_TYPE back to GET_AGGREGATES/AGGREGATE (backport #2236) #2307
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
Add element
DATA_TYPE
back to elementAGGREGATE
in GMPGET_AGGREGATES
.Why
Element was accidentally removed.
References
This element was removed in d73fba8 (SVN r23003) in 2015. In omp.c line 16809 was removed from
omp_xml_handle_end_element
but was missing from the additionbuffer_aggregate_xml
at line 11416.It looks like this was an accident because the element is still in the GMP doc, and the removal would likely have been mentioned in the commit log. Let me know if this was intentional though, I'll adjust the doc instead.
Note that the original had a
type
NULL check before theg_string_append_printf
, buttype
is already checked at the top ofhandle_get_aggregates
.Quick test
Before PR:
After PR, element
data_type
is back: